![]() |
![]() |
xmltooling-1.3.116:55:08.508 INFO jd.cli.Main - Decompiling xmltooling-1.3.1.jar package org.opensaml.xml; import org.opensaml.xml.util.AttributeMap; public abstract interface AttributeExtensibleXMLObject extends XMLObject { public abstract AttributeMap getUnknownAttributes(); } /* Location: * Qualified Name: org.opensaml.xml.AttributeExtensibleXMLObject * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml; import java.util.Collections; import java.util.List; import javax.xml.namespace.QName; import org.opensaml.xml.util.IndexedXMLObjectChildrenList; import org.opensaml.xml.validation.AbstractValidatingXMLObject; public abstract class AbstractElementExtensibleXMLObject extends AbstractValidatingXMLObject implements ElementExtensibleXMLObject { private IndexedXMLObjectChildrenList<XMLObject> anyXMLObjects; public AbstractElementExtensibleXMLObject(String namespaceURI, String elementLocalName, String namespacePrefix) { super(namespaceURI, elementLocalName, namespacePrefix); anyXMLObjects = new IndexedXMLObjectChildrenList(this); } public List<XMLObject> getOrderedChildren() { return Collections.unmodifiableList(anyXMLObjects); } public List<XMLObject> getUnknownXMLObjects() { return anyXMLObjects; } public List<XMLObject> getUnknownXMLObjects(QName typeOrName) { return anyXMLObjects.subList(typeOrName); } } /* Location: * Qualified Name: org.opensaml.xml.AbstractElementExtensibleXMLObject * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema; import javax.xml.namespace.QName; import org.opensaml.xml.validation.ValidatingXMLObject; public abstract interface XSQName extends ValidatingXMLObject { public static final String TYPE_LOCAL_NAME = "QName"; public static final QName TYPE_NAME = new QName("http://www.w3.org/2001/XMLSchema", "QName", "xs"); public abstract QName getValue(); public abstract void setValue(QName paramQName); } /* Location: * Qualified Name: org.opensaml.xml.schema.XSQName * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema; import java.io.File; import java.io.InputStream; import java.util.ArrayList; import java.util.List; import javax.xml.transform.Source; import javax.xml.transform.stream.StreamSource; import javax.xml.validation.Schema; import javax.xml.validation.SchemaFactory; import org.opensaml.xml.parse.LoggingErrorHandler; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.xml.sax.SAXException; public final class SchemaBuilder { public static enum SchemaLanguage { XML("xsd"), RELAX("rng"); private String schemaFileExtension; private SchemaLanguage(String extension) { schemaFileExtension = extension; } public String getSchemaFileExtension() { return schemaFileExtension; } } public static Schema buildSchema(SchemaLanguage lang, String schemaFileOrDirectory) throws SAXException { if (schemaFileOrDirectory == null) { return null; } return buildSchema(lang, new File(schemaFileOrDirectory)); } public static Schema buildSchema(SchemaLanguage lang, String[] schemaFilesOrDirectories) throws SAXException { if ((schemaFilesOrDirectories == null) || (schemaFilesOrDirectories.length == 0)) { return null; } return buildSchema(lang, schemaFilesOrDirectories); } public static Schema buildSchema(SchemaLanguage lang, File schemaFileOrDirectory) throws SAXException { if (schemaFileOrDirectory == null) { return null; } return buildSchema(lang, new File[] { schemaFileOrDirectory }); } public static Schema buildSchema(SchemaLanguage lang, File[] schemaFilesOrDirectories) throws SAXException { if ((schemaFilesOrDirectories == null) || (schemaFilesOrDirectories.length == 0)) { return null; } ArrayList<File> schemaFiles = new ArrayList(); getSchemaFiles(lang, schemaFilesOrDirectories, schemaFiles); if (schemaFiles.isEmpty()) { return null; } ArrayList<Source> schemaSources = new ArrayList(); for (File schemaFile : schemaFiles) { schemaSources.add(new StreamSource(schemaFile)); } return buildSchema(lang, (Source[])schemaSources.toArray(new Source[0])); } public static Schema buildSchema(SchemaLanguage lang, InputStream schemaSource) throws SAXException { if (schemaSource == null) { return null; } return buildSchema(lang, new StreamSource[] { new StreamSource(schemaSource) }); } public static Schema buildSchema(SchemaLanguage lang, InputStream[] schemaSources) throws SAXException { if ((schemaSources == null) || (schemaSources.length == 0)) { return null; } ArrayList<StreamSource> sources = new ArrayList(); for (InputStream schemaSource : schemaSources) { if (schemaSource != null) { sources.add(new StreamSource(schemaSource)); } } if (sources.isEmpty()) { return null; } return buildSchema(lang, (Source[])sources.toArray(new Source[0])); } protected static void getSchemaFiles(SchemaLanguage lang, File[] schemaFilesOrDirectories, List<File> accumulatedSchemaFiles) { Logger log = getLogger(); if (lang == null) { throw new IllegalArgumentException("Schema language may not be null"); } if ((schemaFilesOrDirectories == null) || (schemaFilesOrDirectories.length == 0)) { return; } for (File handle : schemaFilesOrDirectories) { if (handle != null) { if (!handle.canRead()) { log.debug("Ignoring '{}', no read permission", handle.getAbsolutePath()); } if ((handle.isFile()) && (handle.getName().endsWith(lang.getSchemaFileExtension()))) { log.debug("Added schema source '{}'", handle.getAbsolutePath()); accumulatedSchemaFiles.add(handle); } if (handle.isDirectory()) { getSchemaFiles(lang, handle.listFiles(), accumulatedSchemaFiles); } } } } protected static Schema buildSchema(SchemaLanguage lang, Source[] schemaSources) throws SAXException { if (lang == null) { throw new IllegalArgumentException("Schema language may not be null"); } if (schemaSources == null) { throw new IllegalArgumentException("Schema sources may not be null"); } SchemaFactory schemaFactory; SchemaFactory schemaFactory; if (lang == SchemaLanguage.XML) { schemaFactory = SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema"); } else { schemaFactory = SchemaFactory.newInstance("http://relaxng.org/ns/structure/1.0"); } schemaFactory.setErrorHandler(new LoggingErrorHandler(LoggerFactory.getLogger(SchemaBuilder.class))); return schemaFactory.newSchema(schemaSources); } private static Logger getLogger() { return LoggerFactory.getLogger(SchemaBuilder.class); } } /* Location: * Qualified Name: org.opensaml.xml.schema.SchemaBuilder * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema; import org.opensaml.xml.util.DatatypeHelper; public class XSBooleanValue { private boolean numeric; private Boolean value; public XSBooleanValue() { numeric = false; value = null; } public XSBooleanValue(Boolean newValue, boolean numericRepresentation) { numeric = numericRepresentation; value = newValue; } public Boolean getValue() { return value; } public void setValue(Boolean newValue) { value = newValue; } public boolean isNumericRepresentation() { return numeric; } public void setNumericRepresentation(boolean numericRepresentation) { numeric = numericRepresentation; } public int hashCode() { int hash; int hash; if (numeric) { int hash; if (value == null) { hash = 0; } else { int hash; if (value.booleanValue()) { hash = 1; } else { hash = 3; } } } else { int hash; if (value == null) { hash = 4; } else { int hash; if (value.booleanValue()) { hash = 5; } else { hash = 6; } } } return hash; } public boolean equals(Object obj) { if (obj == this) { return true; } if ((obj instanceof XSBooleanValue)) { return hashCode() == obj.hashCode(); } return false; } public String toString() { return toString(value, numeric); } public static String toString(Boolean value, boolean numericRepresentation) { if (value == null) { return "false"; } if (numericRepresentation) { if (value.booleanValue()) { return "1"; } return "0"; } return value.toString(); } public static XSBooleanValue valueOf(String booleanString) { String trimmedBooleanString = DatatypeHelper.safeTrimOrNullString(booleanString); if (trimmedBooleanString != null) { if (trimmedBooleanString.equals("1")) { return new XSBooleanValue(Boolean.TRUE, true); } if (trimmedBooleanString.equals("0")) { return new XSBooleanValue(Boolean.FALSE, true); } if (trimmedBooleanString.equals("true")) { return new XSBooleanValue(Boolean.TRUE, false); } } return new XSBooleanValue(Boolean.FALSE, false); } } /* Location: * Qualified Name: org.opensaml.xml.schema.XSBooleanValue * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.validator; import org.opensaml.xml.schema.XSString; import org.opensaml.xml.util.DatatypeHelper; import org.opensaml.xml.validation.ValidationException; import org.opensaml.xml.validation.Validator; public class XSStringSchemaValidator<T extends XSString> implements Validator<T> { private boolean allowEmptyContent; public XSStringSchemaValidator(boolean allowEmptyElementContent) { allowEmptyContent = allowEmptyElementContent; } public XSStringSchemaValidator() { allowEmptyContent = false; } public void validate(T xmlObject) throws ValidationException { validateStringContent(xmlObject); } protected boolean isAllowEmptyContent() { return allowEmptyContent; } protected void validateStringContent(T xmlObject) throws ValidationException { if ((!isAllowEmptyContent()) && (DatatypeHelper.isEmpty(xmlObject.getValue()))) { throw new ValidationException("String content may not be empty"); } } } /* Location: * Qualified Name: org.opensaml.xml.schema.validator.XSStringSchemaValidator * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.validator; import org.opensaml.xml.schema.XSDateTime; import org.opensaml.xml.validation.ValidationException; import org.opensaml.xml.validation.Validator; public class XSDateTimeSchemaValidator<T extends XSDateTime> implements Validator<T> { private boolean allowEmptyContent; public XSDateTimeSchemaValidator(boolean allowEmptyContent) { this.allowEmptyContent = allowEmptyContent; } public XSDateTimeSchemaValidator() { allowEmptyContent = false; } protected boolean isAllowEmptyContent() { return allowEmptyContent; } public void validate(T xmlObject) throws ValidationException { validateDateTimeContent(xmlObject); } protected void validateDateTimeContent(T xmlObject) throws ValidationException { if ((!allowEmptyContent) && (xmlObject.getValue() == null)) { throw new ValidationException("dateTime content may not be empty"); } } } /* Location: * Qualified Name: org.opensaml.xml.schema.validator.XSDateTimeSchemaValidator * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.validator; import org.opensaml.xml.schema.XSInteger; import org.opensaml.xml.validation.ValidationException; import org.opensaml.xml.validation.Validator; public class XSIntegerSchemaValidator<T extends XSInteger> implements Validator<T> { private boolean allowEmptyContent; public XSIntegerSchemaValidator(boolean allowEmptyElementContent) { allowEmptyContent = allowEmptyElementContent; } public XSIntegerSchemaValidator() { allowEmptyContent = false; } public void validate(T xmlObject) throws ValidationException { validateIntegerContent(xmlObject); } protected boolean isAllowEmptyContent() { return allowEmptyContent; } protected void validateIntegerContent(T xmlObject) throws ValidationException { if ((!isAllowEmptyContent()) && (xmlObject.getValue() == null)) { throw new ValidationException("Integer content may not be empty"); } } } /* Location: * Qualified Name: org.opensaml.xml.schema.validator.XSIntegerSchemaValidator * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.validator; import org.opensaml.xml.schema.XSBase64Binary; import org.opensaml.xml.util.DatatypeHelper; import org.opensaml.xml.validation.ValidationException; import org.opensaml.xml.validation.Validator; public class XSBase64BinarySchemaValidator<T extends XSBase64Binary> implements Validator<T> { private boolean allowEmptyContent; public XSBase64BinarySchemaValidator(boolean allowEmptyElementContent) { allowEmptyContent = allowEmptyElementContent; } public XSBase64BinarySchemaValidator() { allowEmptyContent = false; } public void validate(T xmlObject) throws ValidationException { validateBase64BinaryContent(xmlObject); } protected boolean isAllowEmptyContent() { return allowEmptyContent; } protected void validateBase64BinaryContent(T xmlObject) throws ValidationException { if ((!isAllowEmptyContent()) && (DatatypeHelper.isEmpty(xmlObject.getValue()))) { throw new ValidationException("Base64Binary content may not be empty"); } } } /* Location: * Qualified Name: org.opensaml.xml.schema.validator.XSBase64BinarySchemaValidator * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema; import javax.xml.namespace.QName; import org.joda.time.DateTime; import org.joda.time.format.DateTimeFormatter; import org.opensaml.xml.validation.ValidatingXMLObject; public abstract interface XSDateTime extends ValidatingXMLObject { public static final String TYPE_LOCAL_NAME = "dateTime"; public static final QName TYPE_NAME = new QName("http://www.w3.org/2001/XMLSchema", "dateTime", "xs"); public abstract DateTime getValue(); public abstract void setValue(DateTime paramDateTime); public abstract DateTimeFormatter getDateTimeFormatter(); public abstract void setDateTimeFormatter(DateTimeFormatter paramDateTimeFormatter); } /* Location: * Qualified Name: org.opensaml.xml.schema.XSDateTime * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import java.util.Map.Entry; import javax.xml.namespace.QName; import org.opensaml.xml.Configuration; import org.opensaml.xml.XMLObject; import org.opensaml.xml.io.AbstractXMLObjectMarshaller; import org.opensaml.xml.io.MarshallingException; import org.opensaml.xml.schema.XSAny; import org.opensaml.xml.util.AttributeMap; import org.opensaml.xml.util.XMLHelper; import org.w3c.dom.Attr; import org.w3c.dom.Element; public class XSAnyMarshaller extends AbstractXMLObjectMarshaller { protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException { XSAny xsAny = (XSAny)xmlObject; for (Map.Entry<QName, String> entry : xsAny.getUnknownAttributes().entrySet()) { Attr attribute = XMLHelper.constructAttribute(domElement.getOwnerDocument(), (QName)entry.getKey()); attribute.setValue((String)entry.getValue()); domElement.setAttributeNodeNS(attribute); if ((Configuration.isIDAttribute((QName)entry.getKey())) || (xsAny.getUnknownAttributes().isIDAttribute((QName)entry.getKey()))) { attribute.getOwnerElement().setIdAttributeNode(attribute, true); } } } protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException { XSAny xsAny = (XSAny)xmlObject; if (xsAny.getTextContent() != null) { XMLHelper.appendTextContent(domElement, xsAny.getTextContent()); } } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSAnyMarshaller * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import org.opensaml.xml.AbstractXMLObjectBuilder; import org.opensaml.xml.schema.XSBase64Binary; public class XSBase64BinaryBuilder extends AbstractXMLObjectBuilder<XSBase64Binary> { public XSBase64Binary buildObject(String namespaceURI, String localName, String namespacePrefix) { return new XSBase64BinaryImpl(namespaceURI, localName, namespacePrefix); } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSBase64BinaryBuilder * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import org.opensaml.xml.XMLObject; import org.opensaml.xml.io.AbstractXMLObjectMarshaller; import org.opensaml.xml.io.MarshallingException; import org.opensaml.xml.schema.XSURI; import org.opensaml.xml.util.XMLHelper; import org.w3c.dom.Element; public class XSURIMarshaller extends AbstractXMLObjectMarshaller { protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {} protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException { XSURI uri = (XSURI)xmlObject; XMLHelper.appendTextContent(domElement, uri.getValue()); } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSURIMarshaller * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import java.util.List; import org.opensaml.xml.XMLObject; import org.opensaml.xml.schema.XSString; import org.opensaml.xml.validation.AbstractValidatingXMLObject; public class XSStringImpl extends AbstractValidatingXMLObject implements XSString { private String value; protected XSStringImpl(String namespaceURI, String elementLocalName, String namespacePrefix) { super(namespaceURI, elementLocalName, namespacePrefix); } public String getValue() { return value; } public void setValue(String newValue) { value = prepareForAssignment(value, newValue); } public List<XMLObject> getOrderedChildren() { return null; } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSStringImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import org.opensaml.xml.AbstractXMLObjectBuilder; import org.opensaml.xml.schema.XSDateTime; public class XSDateTimeBuilder extends AbstractXMLObjectBuilder<XSDateTime> { public XSDateTime buildObject(String namespaceURI, String localName, String namespacePrefix) { return new XSDateTimeImpl(namespaceURI, localName, namespacePrefix); } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSDateTimeBuilder * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import org.opensaml.xml.XMLObject; import org.opensaml.xml.io.AbstractXMLObjectMarshaller; import org.opensaml.xml.io.MarshallingException; import org.opensaml.xml.schema.XSQName; import org.opensaml.xml.util.XMLHelper; import org.w3c.dom.Element; public class XSQNameMarshaller extends AbstractXMLObjectMarshaller { protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {} protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException { XSQName qname = (XSQName)xmlObject; XMLHelper.appendTextContent(domElement, XMLHelper.qnameToContentString(qname.getValue())); } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSQNameMarshaller * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import java.util.Collections; import java.util.LinkedList; import java.util.List; import org.opensaml.xml.XMLObject; import org.opensaml.xml.schema.XSURI; import org.opensaml.xml.validation.AbstractValidatingXMLObject; public class XSURIImpl extends AbstractValidatingXMLObject implements XSURI { private String value; protected XSURIImpl(String namespaceURI, String elementLocalName, String namespacePrefix) { super(namespaceURI, elementLocalName, namespacePrefix); } public String getValue() { return value; } public void setValue(String newValue) { value = prepareForAssignment(value, newValue); } public List<XMLObject> getOrderedChildren() { return Collections.unmodifiableList(new LinkedList()); } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSURIImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import org.opensaml.xml.AbstractXMLObjectBuilder; import org.opensaml.xml.schema.XSQName; public class XSQNameBuilder extends AbstractXMLObjectBuilder<XSQName> { public XSQName buildObject(String namespaceURI, String localName, String namespacePrefix) { return new XSQNameImpl(namespaceURI, localName, namespacePrefix); } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSQNameBuilder * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import org.joda.time.DateTime; import org.joda.time.chrono.ISOChronology; import org.opensaml.xml.XMLObject; import org.opensaml.xml.io.BaseXMLObjectUnmarshaller; import org.opensaml.xml.schema.XSDateTime; public class XSDateTimeUnmarshaller extends BaseXMLObjectUnmarshaller { protected void processElementContent(XMLObject xmlObject, String elementContent) { XSDateTime xsDateTime = (XSDateTime)xmlObject; xsDateTime.setValue(new DateTime(elementContent).withChronology(ISOChronology.getInstanceUTC())); } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSDateTimeUnmarshaller * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import java.util.Collections; import java.util.List; import javax.xml.namespace.QName; import org.opensaml.xml.XMLObject; import org.opensaml.xml.schema.XSAny; import org.opensaml.xml.util.AttributeMap; import org.opensaml.xml.util.IndexedXMLObjectChildrenList; import org.opensaml.xml.validation.AbstractValidatingXMLObject; public class XSAnyImpl extends AbstractValidatingXMLObject implements XSAny { private IndexedXMLObjectChildrenList<XMLObject> unknownXMLObjects; private AttributeMap unknownAttributes; private String textContent; protected XSAnyImpl(String namespaceURI, String elementLocalName, String namespacePrefix) { super(namespaceURI, elementLocalName, namespacePrefix); unknownXMLObjects = new IndexedXMLObjectChildrenList(this); unknownAttributes = new AttributeMap(this); } public String getTextContent() { return textContent; } public void setTextContent(String newContent) { textContent = prepareForAssignment(textContent, newContent); } public List<XMLObject> getUnknownXMLObjects() { return unknownXMLObjects; } public List<XMLObject> getUnknownXMLObjects(QName typeOrName) { return unknownXMLObjects.subList(typeOrName); } public List<XMLObject> getOrderedChildren() { return Collections.unmodifiableList(unknownXMLObjects); } public AttributeMap getUnknownAttributes() { return unknownAttributes; } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSAnyImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import org.opensaml.xml.XMLObject; import org.opensaml.xml.io.AbstractXMLObjectUnmarshaller; import org.opensaml.xml.io.UnmarshallingException; import org.opensaml.xml.schema.XSQName; import org.opensaml.xml.util.DatatypeHelper; import org.opensaml.xml.util.XMLHelper; import org.w3c.dom.Attr; import org.w3c.dom.Text; public class XSQNameUnmarshaller extends AbstractXMLObjectUnmarshaller { protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject) throws UnmarshallingException {} protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {} protected void processElementContent(XMLObject xmlObject, String elementContent) {} protected void unmarshallTextContent(XMLObject xmlObject, Text content) throws UnmarshallingException { String textContent = DatatypeHelper.safeTrimOrNullString(content.getWholeText()); if (textContent != null) { XSQName qname = (XSQName)xmlObject; qname.setValue(XMLHelper.constructQName(textContent, XMLHelper.getElementAncestor(content))); } } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSQNameUnmarshaller * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import org.opensaml.xml.AbstractXMLObjectBuilder; import org.opensaml.xml.schema.XSURI; public class XSURIBuilder extends AbstractXMLObjectBuilder<XSURI> { public XSURI buildObject(String namespaceURI, String localName, String namespacePrefix) { return new XSURIImpl(namespaceURI, localName, namespacePrefix); } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSURIBuilder * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import org.opensaml.xml.XMLObject; import org.opensaml.xml.io.AbstractXMLObjectMarshaller; import org.opensaml.xml.io.MarshallingException; import org.opensaml.xml.schema.XSInteger; import org.opensaml.xml.util.XMLHelper; import org.w3c.dom.Element; public class XSIntegerMarshaller extends AbstractXMLObjectMarshaller { protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {} protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException { XSInteger xsiInteger = (XSInteger)xmlObject; if (xsiInteger.getValue() != null) { XMLHelper.appendTextContent(domElement, xsiInteger.getValue().toString()); } } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSIntegerMarshaller * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import org.opensaml.xml.XMLObject; import org.opensaml.xml.io.AbstractXMLObjectUnmarshaller; import org.opensaml.xml.io.UnmarshallingException; import org.opensaml.xml.schema.XSBase64Binary; import org.w3c.dom.Attr; public class XSBase64BinaryUnmarshaller extends AbstractXMLObjectUnmarshaller { protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject) throws UnmarshallingException {} protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {} protected void processElementContent(XMLObject xmlObject, String elementContent) { XSBase64Binary xsBase64Binary = (XSBase64Binary)xmlObject; if (elementContent != null) { xsBase64Binary.setValue(elementContent.trim()); } } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSBase64BinaryUnmarshaller * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import org.opensaml.xml.XMLObject; import org.opensaml.xml.io.AbstractXMLObjectUnmarshaller; import org.opensaml.xml.io.UnmarshallingException; import org.opensaml.xml.schema.XSString; import org.w3c.dom.Attr; public class XSStringUnmarshaller extends AbstractXMLObjectUnmarshaller { protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject) throws UnmarshallingException {} protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {} protected void processElementContent(XMLObject xmlObject, String elementContent) { XSString xsiString = (XSString)xmlObject; xsiString.setValue(elementContent); } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSStringUnmarshaller * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import org.opensaml.xml.AbstractXMLObjectBuilder; import org.opensaml.xml.schema.XSString; public class XSStringBuilder extends AbstractXMLObjectBuilder<XSString> { public XSString buildObject(String namespaceURI, String localName, String namespacePrefix) { return new XSStringImpl(namespaceURI, localName, namespacePrefix); } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSStringBuilder * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import org.opensaml.xml.AbstractXMLObjectBuilder; import org.opensaml.xml.schema.XSAny; public class XSAnyBuilder extends AbstractXMLObjectBuilder<XSAny> { public XSAny buildObject(String namespaceURI, String localName, String namespacePrefix) { return new XSAnyImpl(namespaceURI, localName, namespacePrefix); } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSAnyBuilder * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import org.opensaml.xml.AbstractXMLObjectBuilder; import org.opensaml.xml.schema.XSInteger; public class XSIntegerBuilder extends AbstractXMLObjectBuilder<XSInteger> { public XSInteger buildObject(String namespaceURI, String localName, String namespacePrefix) { return new XSIntegerImpl(namespaceURI, localName, namespacePrefix); } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSIntegerBuilder * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import org.opensaml.xml.XMLObject; import org.opensaml.xml.io.AbstractXMLObjectMarshaller; import org.opensaml.xml.io.MarshallingException; import org.opensaml.xml.schema.XSString; import org.opensaml.xml.util.XMLHelper; import org.w3c.dom.Element; public class XSStringMarshaller extends AbstractXMLObjectMarshaller { protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {} protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException { XSString xsiString = (XSString)xmlObject; XMLHelper.appendTextContent(domElement, xsiString.getValue()); } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSStringMarshaller * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import org.opensaml.xml.XMLObject; import org.opensaml.xml.io.AbstractXMLObjectMarshaller; import org.opensaml.xml.io.MarshallingException; import org.opensaml.xml.schema.XSBase64Binary; import org.opensaml.xml.util.XMLHelper; import org.w3c.dom.Element; public class XSBase64BinaryMarshaller extends AbstractXMLObjectMarshaller { protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {} protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException { XSBase64Binary xsBase64Binary = (XSBase64Binary)xmlObject; XMLHelper.appendTextContent(domElement, xsBase64Binary.getValue()); } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSBase64BinaryMarshaller * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import org.opensaml.xml.XMLObject; import org.opensaml.xml.io.AbstractXMLObjectUnmarshaller; import org.opensaml.xml.io.UnmarshallingException; import org.opensaml.xml.schema.XSInteger; import org.w3c.dom.Attr; public class XSIntegerUnmarshaller extends AbstractXMLObjectUnmarshaller { protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject) throws UnmarshallingException {} protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {} protected void processElementContent(XMLObject xmlObject, String elementContent) { XSInteger xsiInteger = (XSInteger)xmlObject; if (elementContent != null) { xsiInteger.setValue(Integer.valueOf(elementContent.trim())); } } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSIntegerUnmarshaller * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import java.util.List; import javax.xml.namespace.QName; import org.opensaml.xml.XMLObject; import org.opensaml.xml.io.AbstractXMLObjectUnmarshaller; import org.opensaml.xml.io.UnmarshallingException; import org.opensaml.xml.schema.XSAny; import org.opensaml.xml.util.AttributeMap; import org.opensaml.xml.util.XMLHelper; import org.w3c.dom.Attr; public class XSAnyUnmarshaller extends AbstractXMLObjectUnmarshaller { protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject) throws UnmarshallingException { XSAny xsAny = (XSAny)parentXMLObject; xsAny.getUnknownXMLObjects().add(childXMLObject); } protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException { XSAny xsAny = (XSAny)xmlObject; QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix()); if (attribute.isId()) { xsAny.getUnknownAttributes().registerID(attribQName); } xsAny.getUnknownAttributes().put(attribQName, attribute.getValue()); } protected void processElementContent(XMLObject xmlObject, String elementContent) { XSAny xsAny = (XSAny)xmlObject; xsAny.setTextContent(elementContent); } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSAnyUnmarshaller * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import java.util.Collections; import java.util.LinkedList; import java.util.List; import javax.xml.namespace.QName; import org.opensaml.xml.XMLObject; import org.opensaml.xml.schema.XSQName; import org.opensaml.xml.validation.AbstractValidatingXMLObject; public class XSQNameImpl extends AbstractValidatingXMLObject implements XSQName { private QName value; protected XSQNameImpl(String namespaceURI, String elementLocalName, String namespacePrefix) { super(namespaceURI, elementLocalName, namespacePrefix); } public QName getValue() { return value; } public void setValue(QName newValue) { value = prepareElementContentForAssignment(value, newValue); } public List<XMLObject> getOrderedChildren() { return Collections.unmodifiableList(new LinkedList()); } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSQNameImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import org.joda.time.format.DateTimeFormatter; import org.opensaml.xml.XMLObject; import org.opensaml.xml.io.BaseXMLObjectMarshaller; import org.opensaml.xml.io.MarshallingException; import org.opensaml.xml.schema.XSDateTime; import org.opensaml.xml.util.XMLHelper; import org.w3c.dom.Element; public class XSDateTimeMarshaller extends BaseXMLObjectMarshaller { protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException { XSDateTime xsDateTime = (XSDateTime)xmlObject; XMLHelper.appendTextContent(domElement, xsDateTime.getDateTimeFormatter().print(xsDateTime.getValue())); } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSDateTimeMarshaller * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import java.util.List; import org.opensaml.xml.XMLObject; import org.opensaml.xml.schema.XSInteger; import org.opensaml.xml.validation.AbstractValidatingXMLObject; public class XSIntegerImpl extends AbstractValidatingXMLObject implements XSInteger { private Integer value; protected XSIntegerImpl(String namespaceURI, String elementLocalName, String namespacePrefix) { super(namespaceURI, elementLocalName, namespacePrefix); } public Integer getValue() { return value; } public void setValue(Integer newValue) { value = ((Integer)prepareForAssignment(value, newValue)); } public List<XMLObject> getOrderedChildren() { return null; } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSIntegerImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import java.util.Collections; import java.util.List; import org.joda.time.DateTime; import org.joda.time.chrono.ISOChronology; import org.joda.time.format.DateTimeFormatter; import org.joda.time.format.ISODateTimeFormat; import org.opensaml.xml.XMLObject; import org.opensaml.xml.schema.XSDateTime; import org.opensaml.xml.validation.AbstractValidatingXMLObject; public class XSDateTimeImpl extends AbstractValidatingXMLObject implements XSDateTime { private DateTime value; private DateTimeFormatter formatter; protected XSDateTimeImpl(String namespaceURI, String elementLocalName, String namespacePrefix) { super(namespaceURI, elementLocalName, namespacePrefix); formatter = ISODateTimeFormat.dateTime().withChronology(ISOChronology.getInstanceUTC()); } public DateTime getValue() { return value; } public void setValue(DateTime newValue) { value = ((DateTime)prepareForAssignment(value, newValue)); } public List<XMLObject> getOrderedChildren() { return Collections.emptyList(); } public DateTimeFormatter getDateTimeFormatter() { return formatter; } public void setDateTimeFormatter(DateTimeFormatter newFormatter) { if (newFormatter == null) { throw new IllegalArgumentException("The specified DateTimeFormatter may not be null"); } formatter = newFormatter; } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSDateTimeImpl * Java Class Version: 5 (49.0) * JD-Core Version: 0.7.1 */ package org.opensaml.xml.schema.impl; import org.opensaml.xml.XMLObject; import org.opensaml.xml.io.AbstractXMLObjectUnmarshaller; import org.opensaml.xml.io.UnmarshallingException; import org.opensaml.xml.schema.XSURI; import org.w3c.dom.Attr; public class XSURIUnmarshaller extends AbstractXMLObjectUnmarshaller { protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject) throws UnmarshallingException {} protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {} protected void processElementContent(XMLObject xmlObject, String elementContent) { XSURI uri = (XSURI)xmlObject; uri.setValue(elementContent); } } /* Location: * Qualified Name: org.opensaml.xml.schema.impl.XSURIUnmarshaller Further reading...For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.New!JAR listings
|