Examples of XmlDocumentType


Examples of org.eclipse.sapphire.modeling.xml.annotations.XmlDocumentType

                final QName qualifiedName = path.getSegment( 0 ).getQualifiedName();
                final String localName = qualifiedName.getLocalPart();
                final String prefix = qualifiedName.getPrefix();
                final String namespace = qualifiedName.getNamespaceURI();
               
                final XmlDocumentType xmlDocumentTypeAnnotation = modelElementType.getAnnotation( XmlDocumentType.class );
              
                if( xmlDocumentTypeAnnotation != null && xmlDocumentTypeAnnotation.systemId().length() != 0 )
                {
                    this.rootElementController = new DocumentTypeRootElementController( localName );
                }
                else
                {
View Full Code Here

Examples of org.eclipse.sapphire.modeling.xml.annotations.XmlDocumentType

    }

    @Override
    public void init(XmlResource resource) {
        super.init(resource);
        XmlDocumentType doctypeAnnotation = resource.root().element()
                .type().getAnnotation(XmlDocumentType.class);
       
        if( doctypeAnnotation != null )
        {
            this.systemId = normalizeToNull( doctypeAnnotation.systemId() );
           
            if( this.systemId == null )
            {
                throw new IllegalStateException();
            }
           
            this.publicId = normalizeToNull( doctypeAnnotation.publicId() );
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.