/*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
* Copyright 2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
/*
*/
/*
* $Id: DOMXMLObject.java,v 1.2 2008/07/24 15:20:32 mullan Exp $
*/
/**
* DOM-based implementation of XMLObject.
*
* @author Sean Mullan
*/
/**
* Creates an <code>XMLObject</code> from the specified parameters.
*
* @param content a list of {@link XMLStructure}s. The list
* is defensively copied to protect against subsequent modification.
* May be <code>null</code> or empty.
* @param id the Id (may be <code>null</code>)
* @param mimeType the mime type (may be <code>null</code>)
* @param encoding the encoding (may be <code>null</code>)
* @return an <code>XMLObject</code>
* @throws ClassCastException if <code>content</code> contains any
* entries that are not of type {@link XMLStructure}
*/
} else {
throw new ClassCastException
("content["+i+"] is not a valid type");
}
}
}
}
/**
* Creates an <code>XMLObject</code> from an element.
*
* @param objElem an Object element
* @throws MarshalException if there is an error when unmarshalling
*/
// unmarshal attributes
} else {
}
for (int i = 0; i < length; i++) {
continue;
continue;
continue;
}
//@@@FIXME: check for other dsig structures
}
}
} else {
}
}
return content;
}
return id;
}
return mimeType;
}
return encoding;
}
throws MarshalException {
// set attributes
// create and append any elements and mixed content, if necessary
if (object instanceof DOMStructure) {
} else {
}
}
}
if (this == o) {
return true;
}
if (!(o instanceof XMLObject)) {
return false;
}
}
return false;
}
return false;
}
return false;
}
} else {
return false;
}
}
}
return true;
}
}