Package org.codehaus.enunciate.contract.jaxb.types

Examples of org.codehaus.enunciate.contract.jaxb.types.XmlType


    super(delegate);
  }

  @Override
  public XmlType getBaseType() {
    XmlType baseType = super.getBaseType();

    if (baseType == null) {
      try {
        baseType = XmlTypeFactory.getXmlType(getSuperclass());
      }
View Full Code Here


      //the namespace is different; must be a ref...
      return new QName(elementNamespace, isWrapped() ? getWrapperName() : getName());
    }
    else {
      //check to see if this is an implied ref as per the jaxb spec, section 8.9.1.2
      XmlType baseType = getBaseType();
      if ((baseType.isAnonymous()) && (baseType instanceof XmlClassType)) {
        TypeDefinition baseTypeDef = ((XmlClassType) baseType).getTypeDefinition();
        if (baseTypeDef.getAnnotation(XmlRootElement.class) != null) {
          RootElementDeclaration rootElement = new RootElementDeclaration((ClassDeclaration) baseTypeDef.getDelegate(), baseTypeDef);
          ref = new QName(rootElement.getNamespace(), rootElement.getName());
        }
View Full Code Here

  public String getAttributeDocs() {
    return attribute.getJavaDoc() != null ? attribute.getJavaDoc().toString() : null;
  }

  public QName getTypeQName() {
    XmlType baseType = attribute.getBaseType();
    if (baseType.isAnonymous()) {
      return null;
    }
    else {
      return baseType.getQname();
    }
  }
View Full Code Here

      return baseType.getQname();
    }
  }

  public TypeDefinition getAnonymousTypeDefinition() {
    XmlType baseType = attribute.getBaseType();
    if ((baseType.isAnonymous()) && (baseType instanceof XmlClassType)) {
      return ((XmlClassType) baseType).getTypeDefinition();
    }

    return null;
  }
View Full Code Here

  public String getElementDocs() {
    return element.getJavaDoc() != null ? element.getJavaDoc().toString() : null;
  }

  public QName getTypeQName() {
    XmlType baseType = element.getBaseType();
    if (baseType.isAnonymous()) {
      return null;
    }
    else {
      return baseType.getQname();
    }
  }
View Full Code Here

      return baseType.getQname();
    }
  }

  public TypeDefinition getAnonymousTypeDefinition() {
    XmlType baseType = element.getBaseType();
    if ((baseType.isAnonymous()) && (baseType instanceof XmlClassType)) {
      return ((XmlClassType) baseType).getTypeDefinition();
    }

    return null;
  }
View Full Code Here

    }
    else if (declaration instanceof PropertyDeclaration) {
      parameterType = ((PropertyDeclaration) declaration).getPropertyType();
    }

    XmlType xmlType = null;
    boolean multivalued = false;
    if (parameterType != null) {
      try {
        xmlType = XmlTypeFactory.getXmlType(parameterType);
      }
View Full Code Here

      return docs;
    }

    public XmlType getXmlType() {
      try {
        XmlType xmlType = XmlTypeFactory.findSpecifiedType(this);
        if (xmlType == null) {
          xmlType = XmlTypeFactory.getXmlType(getType());
        }
        return xmlType;
      }
View Full Code Here

    return accessors.iterator();
  }

  private void aggregateAttributes(List<Accessor> accessors, TypeDefinition typeDef) {
    if (!typeDef.isBaseObject()) {
      XmlType baseType = typeDef.getBaseType();
      if (baseType instanceof XmlClassType) {
        aggregateAttributes(accessors, ((XmlClassType)baseType).getTypeDefinition());
      }
    }
View Full Code Here

    }
    else if (typeDef.isBaseObject()) {
      return null;
    }
    else {
      XmlType baseType = typeDef.getBaseType();
      return baseType instanceof XmlClassType ? findValue(((XmlClassType)baseType).getTypeDefinition()) : null;
    }
  }
View Full Code Here

TOP

Related Classes of org.codehaus.enunciate.contract.jaxb.types.XmlType

Copyright © 2018 www.massapicom. 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.