You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by mc...@apache.org on 2008/03/20 16:36:54 UTC
svn commit: r639319 - in
/incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding:
./ impl/ javabeans/ xml/
Author: mcombellack
Date: Thu Mar 20 08:36:51 2008
New Revision: 639319
URL: http://svn.apache.org/viewvc?rev=639319&view=rev
Log:
Minor JavaDoc updates and spelling corrections
Modified:
incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DataBindingExtensionPoint.java
incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultDataBindingExtensionPoint.java
incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/TransformationContext.java
incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/Transformer.java
incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/DOMHelper.java
incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/DirectedGraph.java
incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/MediatorImpl.java
incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/PipedTransformer.java
incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/SimpleType2JavaTransformer.java
incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaBeansDataBinding.java
incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/DelegatingNamespaceContext.java
incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/NameValueArrayStreamReader.java
incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/NameValuePairStreamReader.java
incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLFragmentStreamReaderImpl.java
incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLStreamSerializer.java
incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XmlNode.java
incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XmlNodeIterator.java
incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XmlTreeStreamReaderImpl.java
Modified: incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DataBindingExtensionPoint.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DataBindingExtensionPoint.java?rev=639319&r1=639318&r2=639319&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DataBindingExtensionPoint.java (original)
+++ incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DataBindingExtensionPoint.java Thu Mar 20 08:36:51 2008
@@ -65,7 +65,7 @@
*
* @param DataType The initial data type
* @param annotations The java annotations
- * @param boolean Should be set to true if DataType parm represents an Exception
+ * @param boolean Should be set to true if DataType parameter represents an Exception
* @return A DataType representing the java type or null if no databinding
* recognizes the java type
*/
Modified: incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultDataBindingExtensionPoint.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultDataBindingExtensionPoint.java?rev=639319&r1=639318&r2=639319&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultDataBindingExtensionPoint.java (original)
+++ incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultDataBindingExtensionPoint.java Thu Mar 20 08:36:51 2008
@@ -231,7 +231,7 @@
// Next look to see if the DB's exceptionHandler handles this exception
ExceptionHandler excHandler = binding.getExceptionHandler();
if (excHandler != null) {
- // Assymetric to have the introspect() methods set the DataBindings themselves
+ // Asymmetric to have the introspect() methods set the DataBindings themselves
// whereas we're setting it ourselves here.
DataType faultType = excHandler.getFaultType(dataType);
if (faultType != null) {
Modified: incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/TransformationContext.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/TransformationContext.java?rev=639319&r1=639318&r2=639319&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/TransformationContext.java (original)
+++ incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/TransformationContext.java Thu Mar 20 08:36:51 2008
@@ -63,16 +63,16 @@
void setTargetDataType(DataType targetDataType);
/**
- * Get the classloader
+ * Get the ClassLoader
*
- * @return
+ * @return Returns the ClassLoader
*/
ClassLoader getClassLoader();
/**
* Get a map of metadata
*
- * @return
+ * @return Returns a map of the metadata
*/
Map<String, Object> getMetadata();
Modified: incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/Transformer.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/Transformer.java?rev=639319&r1=639318&r2=639319&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/Transformer.java (original)
+++ incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/Transformer.java Thu Mar 20 08:36:51 2008
@@ -20,14 +20,14 @@
/**
* A transformer provides the data transformation from source type to target type. The cost of the transformation is
- * modeled as weight.
+ * modelled as weight.
*/
public interface Transformer {
/**
* Get the source type that this transformer transforms data from. The type is used as the key when the transformer
* is registered with TransformerRegistry.
*
- * @return A key indentifying the source type
+ * @return A key identifying the source type
*/
String getSourceDataBinding();
@@ -35,7 +35,7 @@
* Get the target type that this transformer transforms data into. The type is used as the key when the transformer
* is registered with TransformerRegistry.
*
- * @return A key indentifying the target type
+ * @return A key identifying the target type
*/
String getTargetDataBinding();
Modified: incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/DOMHelper.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/DOMHelper.java?rev=639319&r1=639318&r2=639319&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/DOMHelper.java (original)
+++ incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/DOMHelper.java Thu Mar 20 08:36:51 2008
@@ -140,7 +140,7 @@
Element newElement = element.getOwnerDocument().createElementNS(newName.getNamespaceURI(), qname);
// newElement.setPrefix(prefix);
NodeList nodeList = element.getChildNodes();
- // Need to copy the nodes from the list fisrt as the appendChild() will change the list
+ // Need to copy the nodes from the list first as the appendChild() will change the list
int length = nodeList.getLength();
List<Node> nodes = new ArrayList<Node>();
for (int i = 0; i < length; i++) {
Modified: incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/DirectedGraph.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/DirectedGraph.java?rev=639319&r1=639318&r2=639319&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/DirectedGraph.java (original)
+++ incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/DirectedGraph.java Thu Mar 20 08:36:51 2008
@@ -265,7 +265,7 @@
}
/**
- * Get the shortes path from the source vertex to the target vertex using
+ * Get the shortest path from the source vertex to the target vertex using
* Dijkstra's algorithm. If there's no path, null will be returned. If the
* source is the same as the target, it returns a path with empty edges with
* weight 0.
Modified: incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/MediatorImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/MediatorImpl.java?rev=639319&r1=639318&r2=639319&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/MediatorImpl.java (original)
+++ incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/MediatorImpl.java Thu Mar 20 08:36:51 2008
@@ -96,7 +96,7 @@
(index == size - 1) ? targetDataType : new DataTypeImpl<Object>(transformer.getTargetDataBinding(),
Object.class, targetDataType.getLogical());
- //FIXME The classloader should be passed in
+ //FIXME The ClassLoader should be passed in
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
TransformationContext context = new TransformationContextImpl(sourceType, targetType, classLoader, metadata);
return context;
Modified: incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/PipedTransformer.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/PipedTransformer.java?rev=639319&r1=639318&r2=639319&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/PipedTransformer.java (original)
+++ incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/PipedTransformer.java Thu Mar 20 08:36:51 2008
@@ -29,7 +29,7 @@
* PullTransformer
*
* @param <S> Source type
- * @param <I> Intermidate type
+ * @param <I> Intermediate type
* @param <R> Result type
*/
public class PipedTransformer<S, I, R> implements PullTransformer<S, R> {
Modified: incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/SimpleType2JavaTransformer.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/SimpleType2JavaTransformer.java?rev=639319&r1=639318&r2=639319&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/SimpleType2JavaTransformer.java (original)
+++ incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/impl/SimpleType2JavaTransformer.java Thu Mar 20 08:36:51 2008
@@ -62,7 +62,7 @@
@Override
public int getWeight() {
- // Cannot be used for imtermediate
+ // Cannot be used for intermediate
return 10000;
}
Modified: incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaBeansDataBinding.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaBeansDataBinding.java?rev=639319&r1=639318&r2=639319&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaBeansDataBinding.java (original)
+++ incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/javabeans/JavaBeansDataBinding.java Thu Mar 20 08:36:51 2008
@@ -115,7 +115,7 @@
return Class.forName(desc.getName(), false, cl);
} catch (ClassNotFoundException e) {
try {
- // For OSGi, use context classloader if the bundle classloader cannot load the class
+ // For OSGi, use context ClassLoader if the bundle ClassLoader cannot load the class
if (cl != Thread.currentThread().getContextClassLoader()) {
return Class.forName(desc.getName(), false, Thread.currentThread().getContextClassLoader());
}
Modified: incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/DelegatingNamespaceContext.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/DelegatingNamespaceContext.java?rev=639319&r1=639318&r2=639319&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/DelegatingNamespaceContext.java (original)
+++ incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/DelegatingNamespaceContext.java Thu Mar 20 08:36:51 2008
@@ -64,7 +64,7 @@
private FastStack<String> prefixStack = new FastStack<String>();
- // Keep two arraylists for the prefixes and namespaces. They should be in
+ // Keep two ArrayLists for the prefixes and namespaces. They should be in
// sync
// since the index of the entry will be used to relate them
// use the minimum initial capacity to let things handle memory better
@@ -87,7 +87,7 @@
}
public String getNamespaceURI(String prefix) {
- // do the corrections as per the javadoc
+ // do the corrections as per the Javadoc
int index = prefixStack.search(prefix);
if (index != -1) {
return uriStack.get(index);
@@ -103,7 +103,7 @@
}
public String getPrefix(String uri) {
- // do the corrections as per the javadoc
+ // do the corrections as per the Javadoc
int index = uriStack.search(uri);
if (index != -1) {
return prefixStack.get(index);
@@ -116,7 +116,7 @@
}
public Iterator getPrefixes(String uri) {
- // create an arraylist that contains the relevant prefixes
+ // create an ArrayList that contains the relevant prefixes
String[] uris = uriStack.toArray(new String[uriStack.size()]);
List<String> tempList = new ArrayList<String>();
for (int i = uris.length - 1; i >= 0; i--) {
@@ -168,7 +168,7 @@
*/
public static class FastStack<T> extends ArrayList<T> {
- /** Ensure serialization compatibility */
+ /** Ensure Serialization compatibility */
private static final long serialVersionUID = 2130079159931574599L;
/**
Modified: incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/NameValueArrayStreamReader.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/NameValueArrayStreamReader.java?rev=639319&r1=639318&r2=639319&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/NameValueArrayStreamReader.java (original)
+++ incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/NameValueArrayStreamReader.java Thu Mar 20 08:36:51 2008
@@ -51,7 +51,7 @@
}
public void init() {
- // todo what if the Qname namespace has not been declared
+ // TODO what if the QName namespace has not been declared
}
public Object getProperty(String string) throws IllegalArgumentException {
@@ -121,7 +121,7 @@
public String getAttributeValue(String string, String string1) {
if (state == TEXT_STATE) {
- // todo something
+ // TODO something
return null;
} else {
return null;
@@ -343,7 +343,7 @@
}
public String getVersion() {
- return null; // todo 1.0 ?
+ return null; // TODO 1.0 ?
}
public boolean isStandalone() {
Modified: incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/NameValuePairStreamReader.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/NameValuePairStreamReader.java?rev=639319&r1=639318&r2=639319&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/NameValuePairStreamReader.java (original)
+++ incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/NameValuePairStreamReader.java Thu Mar 20 08:36:51 2008
@@ -85,7 +85,7 @@
}
public int nextTag() throws XMLStreamException {
- return 0; // todo
+ return 0; // TODO
}
public boolean hasNext() throws XMLStreamException {
@@ -149,7 +149,7 @@
}
public boolean isAttributeSpecified(int i) {
- return false; // no attribs here
+ return false; // no attributes here
}
public int getNamespaceCount() {
@@ -292,7 +292,7 @@
}
public String getVersion() {
- return null; // todo 1.0 ?
+ return null; // TODO 1.0 ?
}
public boolean isStandalone() {
@@ -335,7 +335,7 @@
* @param uri
*/
private void addToNsMap(String prefix, String uri) {
- // todo - need to fix this up to cater for cases where
+ // TODO - need to fix this up to cater for cases where
// namespaces are having no prefixes
if (!uri.equals(namespaceContext.getNamespaceURI(prefix))) {
// this namespace is not there. Need to declare it
Modified: incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLFragmentStreamReaderImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLFragmentStreamReaderImpl.java?rev=639319&r1=639318&r2=639319&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLFragmentStreamReaderImpl.java (original)
+++ incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLFragmentStreamReaderImpl.java Thu Mar 20 08:36:51 2008
@@ -31,7 +31,7 @@
/**
* This is the new implementation of the XMLFramentStreamReader. The approach
* here is simple When the pull parser needs to generate events for a particular
- * name-value(s) pair it always handes over (delegates) the task to another pull
+ * name-value(s) pair it always hands over (delegates) the task to another pull
* parser which knows how to deal with it The common types of name value pairs
* we'll come across are
* <ul>
@@ -180,7 +180,7 @@
}
}
} else {
- throw new IllegalStateException(); // as per the api contract
+ throw new IllegalStateException(); // as per the API contract
}
}
@@ -271,11 +271,11 @@
}
public String getCharacterEncodingScheme() {
- return null; // todo - should we return something for this ?
+ return null; // TODO - should we return something for this ?
}
/**
- * todo implement the right contract for this
+ * TODO implement the right contract for this
*
* @throws XMLStreamException
*/
@@ -545,7 +545,7 @@
}
public boolean hasName() {
- // since this parser always has a name, the hasname
+ // since this parser always has a name, the hasName
// has to return true if we are still navigating this element
// if not we should ask the child reader for it.
if (state == DELEGATED_STATE) {
@@ -562,7 +562,7 @@
if (state == DELEGATED_STATE) {
if (childReader.isDone()) {
// the child reader is done. We shouldn't be getting the
- // hasnext result from the child pullparser then
+ // hasNext result from the child pullparser then
return true;
} else {
return childReader.hasNext();
@@ -586,14 +586,14 @@
}
/**
- * we need to split out the calling to the populate namespaces seperately
+ * we need to split out the calling to the populate namespaces separately
* since this needs to be done *after* setting the parent namespace context.
* We cannot assume it will happen at construction!
*/
public void init() {
// here we have an extra issue to attend to. we need to look at the
- // prefixes and uris (the combination) and populate a hashmap of
- // namespaces. The hashmap of namespaces will be used to serve the
+ // prefixes and URIs (the combination) and populate a HashMap of
+ // namespaces. The HashMap of namespaces will be used to serve the
// namespace context
populateNamespaceContext();
@@ -647,7 +647,7 @@
}
/**
- * Get the prefix list from the hastable and take that into an array
+ * Get the prefix list from the HashTable and take that into an array
*/
private String[] makePrefixArray() {
String[] prefixes = declaredNamespaceMap.keySet().toArray(new String[declaredNamespaceMap.size()]);
@@ -667,7 +667,7 @@
// property list and making a pullparser for the property value
if (getElements() == null || getElements().length == 0) {
// no properties - move to the end element state
- // straightaway
+ // straight away
state = END_ELEMENT_STATE;
returnEvent = END_ELEMENT;
} else {
@@ -717,7 +717,7 @@
// ////////////////////////////////////////////////////////////////////////
/**
- * todo implement this
+ * TODO implement this
*
* @throws XMLStreamException
*/
@@ -773,7 +773,7 @@
textFound = true;
}
- // ok! we got the key. Now look at the value
+ // OK! we got the key. Now look at the value
Object propertyValue = getElements()[index].getValue();
// cater for the special case now
if (textFound) {
@@ -832,7 +832,7 @@
}
} else {
- // all special possiblilities has been tried! Let's treat
+ // all special possibilities has been tried! Let's treat
// the thing as a bean and try generating events from it
childReader = new WrappingXMLStreamReader(new BeanXMLStreamReaderImpl(propertyQName, propertyValue));
// we cannot register the namespace context here
Modified: incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLStreamSerializer.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLStreamSerializer.java?rev=639319&r1=639318&r2=639319&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLStreamSerializer.java (original)
+++ incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XMLStreamSerializer.java Thu Mar 20 08:36:51 2008
@@ -33,9 +33,9 @@
private static int namespaceSuffix;
/*
- * The behavior of the serializer is such that it returns when it encounters the starting element for the second
- * time. The depth variable tracks the depth of the serilizer and tells it when to return. Note that it is assumed
- * that this serialization starts on an Element.
+ * The behavior of the Serializer is such that it returns when it encounters the starting element for the second
+ * time. The depth variable tracks the depth of the Serializer and tells it when to return. Note that it is assumed
+ * that this Serialization starts on an Element.
*/
/**
@@ -86,7 +86,7 @@
/*
* Due to parser implementations returning null as the namespace URI (for the empty namespace) we need to
* make sure that we deal with a namespace name that is not null. The best way to work around this issue is
- * to set the namespace uri to "" if it is null
+ * to set the namespace URI to "" if it is null
*/
if (namespaceName == null) {
namespaceName = "";
@@ -105,7 +105,7 @@
// writer prefix is available but different from the
// current
- // prefix of the attrib. We should be decalring the new
+ // prefix of the attrib. We should be declaring the new
// prefix
// as a namespace declaration
} else if (prefix != null && !"".equals(prefix) && !prefix.equals(writerPrefix)) {
Modified: incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XmlNode.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XmlNode.java?rev=639319&r1=639318&r2=639319&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XmlNode.java (original)
+++ incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XmlNode.java Thu Mar 20 08:36:51 2008
@@ -44,7 +44,7 @@
List<XmlNode> attributes();
/**
- * Retunrs a map of prefix to namespace URI
+ * Returns a map of prefix to namespace URI
* @return
*/
Map<String, String> namespaces();
Modified: incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XmlNodeIterator.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XmlNodeIterator.java?rev=639319&r1=639318&r2=639319&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XmlNodeIterator.java (original)
+++ incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XmlNodeIterator.java Thu Mar 20 08:36:51 2008
@@ -212,7 +212,7 @@
*/
public static class FastStack<T> extends ArrayList<T> {
- /** Ensure serialization compatibility */
+ /** Ensure Serialization compatibility */
private static final long serialVersionUID = 2130079159931574599L;
/**
Modified: incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XmlTreeStreamReaderImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XmlTreeStreamReaderImpl.java?rev=639319&r1=639318&r2=639319&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XmlTreeStreamReaderImpl.java (original)
+++ incubator/tuscany/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/xml/XmlTreeStreamReaderImpl.java Thu Mar 20 08:36:51 2008
@@ -488,7 +488,7 @@
}
/**
- * todo implement this
+ * TODO implement this
*
* @throws XMLStreamException
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org