Package com.sun.tools.xjc.model
Class CAttributePropertyInfo
java.lang.Object
com.sun.tools.xjc.model.CPropertyInfo
com.sun.tools.xjc.model.CAttributePropertyInfo
- All Implemented Interfaces:
CCustomizable,org.glassfish.jaxb.core.v2.model.annotation.AnnotationSource,org.glassfish.jaxb.core.v2.model.core.AttributePropertyInfo<NType,,NClass> org.glassfish.jaxb.core.v2.model.core.NonElementRef<NType,,NClass> org.glassfish.jaxb.core.v2.model.core.PropertyInfo<NType,NClass>
public final class CAttributePropertyInfo
extends CPropertyInfo
implements org.glassfish.jaxb.core.v2.model.core.AttributePropertyInfo<NType,NClass>
AttributePropertyInfo for the compiler.- Author:
- Kohsuke Kawaguchi
-
Field Summary
FieldsFields inherited from class com.sun.tools.xjc.model.CPropertyInfo
baseType, defaultValue, inlineBinaryData, javadoc, locator, realization -
Constructor Summary
ConstructorsConstructorDescriptionCAttributePropertyInfo(String name, XSComponent source, CCustomizations customizations, Locator locator, QName attName, TypeUse type, QName typeName, boolean required) -
Method Summary
Modifier and TypeMethodDescription<V> Vaccept(CPropertyVisitor<V> visitor) <R,P> R accept(CPropertyVisitor2<R, P> visitor, P p) final CAdapterfinal jakarta.activation.MimeTypefinal com.sun.tools.xjc.model.CSingleTypePropertyInfofinal CNonElementfinal org.glassfish.jaxb.core.v2.model.core.IDid()booleanReturns true if this property needs to represent null just for the purpose of representing an absence of the property.booleanbooleanAn optional attribute can never be unboxable, for we need null to represent the absence.final org.glassfish.jaxb.core.v2.model.core.PropertyKindkind()ref()Methods inherited from class com.sun.tools.xjc.model.CPropertyInfo
collectElementNames, displayName, getCustomizations, getLocator, getName, getName, getSchemaComponent, hasAnnotation, inlineBinaryData, isCollection, needsExplicitTypeName, parent, readAnnotation, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.glassfish.jaxb.core.v2.model.annotation.AnnotationSource
hasAnnotation, readAnnotationMethods inherited from interface org.glassfish.jaxb.core.v2.model.core.AttributePropertyInfo
getAdapter, getTargetMethods inherited from interface org.glassfish.jaxb.core.v2.model.core.NonElementRef
getSourceMethods inherited from interface org.glassfish.jaxb.core.v2.model.core.PropertyInfo
displayName, getExpectedMimeType, getName, getSchemaType, id, inlineBinaryData, isCollection, parent, ref
-
Field Details
-
type
-
-
Constructor Details
-
CAttributePropertyInfo
public CAttributePropertyInfo(String name, XSComponent source, CCustomizations customizations, Locator locator, QName attName, TypeUse type, @Nullable QName typeName, boolean required) - Parameters:
type- Represents the bound type of this attribute.typeName- XML Schema type name of this attribute. Optional for other schema languages.
-
-
Method Details
-
isRequired
public boolean isRequired() -
getXmlName
-
isUnboxable
public boolean isUnboxable()An optional attribute can never be unboxable, for we need null to represent the absence.- Overrides:
isUnboxablein classCPropertyInfo
-
isOptionalPrimitive
public boolean isOptionalPrimitive()Description copied from class:CPropertyInfoReturns true if this property needs to represent null just for the purpose of representing an absence of the property.- Overrides:
isOptionalPrimitivein classCPropertyInfo
-
accept
- Specified by:
acceptin classCPropertyInfo
-
accept
- Specified by:
acceptin classCPropertyInfo
-
kind
public final org.glassfish.jaxb.core.v2.model.core.PropertyKind kind() -
getSchemaType
-
id
public final org.glassfish.jaxb.core.v2.model.core.ID id() -
getExpectedMimeType
public final jakarta.activation.MimeType getExpectedMimeType() -
ref
- Specified by:
refin interfaceorg.glassfish.jaxb.core.v2.model.core.PropertyInfo<NType,NClass> - Specified by:
refin classCPropertyInfo
-
getTarget
-
getAdapter
- Specified by:
getAdapterin interfaceorg.glassfish.jaxb.core.v2.model.core.PropertyInfo<NType,NClass> - Specified by:
getAdapterin classCPropertyInfo
-
getSource
public final com.sun.tools.xjc.model.CSingleTypePropertyInfo getSource()
-