本文整理匯總了Java中javax.xml.bind.annotation.XmlElements類的典型用法代碼示例。如果您正苦於以下問題:Java XmlElements類的具體用法?Java XmlElements怎麽用?Java XmlElements使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
XmlElements類屬於javax.xml.bind.annotation包,在下文中一共展示了XmlElements類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setComptesCommunaux
import javax.xml.bind.annotation.XmlElements; //導入依賴的package包/類
@XmlElementWrapper(name="comptesCommunaux")
@XmlElements({@XmlElement(name="compteCommunal", type=CompteCommunal.class)})
/**
* @param comptesCommunaux the comptesCommunaux to set
*/
public void setComptesCommunaux(List<CompteCommunal> comptesCommunaux) {
this.comptesCommunaux = comptesCommunaux;
}
示例2: setProprietes
import javax.xml.bind.annotation.XmlElements; //導入依賴的package包/類
@XmlElementWrapper(name="proprietes")
@XmlElements({@XmlElement(name="propriete", type=ProprieteBatie.class)})
/**
* @param proprietes
*/
public void setProprietes(List<ProprieteBatie> proprietes) {
this.proprietes = proprietes;
}
示例3: setParcelleList
import javax.xml.bind.annotation.XmlElements; //導入依賴的package包/類
@XmlElementWrapper(name="parcelles")
@XmlElements({@XmlElement(name="parcelle", type=Parcelle.class)})
/**
* @param parcelleList the parcelleList to set
*/
public void setParcelleList(List<Parcelle> parcelleList) {
this.parcelleList = parcelleList;
}
示例4: setProprietaires
import javax.xml.bind.annotation.XmlElements; //導入依賴的package包/類
@XmlElementWrapper(name = "proprietaires")
@XmlElements({ @XmlElement(name = "Proprietaire", type = Proprietaire.class) })
/**
* @param proprietaires
*/
public void setProprietaires(List<Proprietaire> proprietaires) {
this.proprietaires = proprietaires;
}
示例5: supportsCriteriaValue
import javax.xml.bind.annotation.XmlElements; //導入依賴的package包/類
static boolean supportsCriteriaValue(Class<? extends SingleValuedPredicate> simplePredicateClass, CriteriaValue<?> value) {
if (simplePredicateClass == null) {
throw new IllegalArgumentException("simplePredicateClass was null");
}
if (value == null) {
throw new IllegalArgumentException("valueClass was null");
}
XmlElements elementsAnnotation = CriteriaSupportUtils.findXmlElementsAnnotation(simplePredicateClass);
if (elementsAnnotation != null) {
XmlElement[] elements = elementsAnnotation.value();
for (XmlElement element : elements) {
if (value.getClass().equals(element.type())) {
return true;
}
}
}
return false;
}
示例6: setActivites
import javax.xml.bind.annotation.XmlElements; //導入依賴的package包/類
@XmlElements({
@XmlElement(name="activity"),
@XmlElement(name="activity-alias")
})
public void setActivites(List<Activity> activites) {
this.activites = activites;
}
示例7: getValues
import javax.xml.bind.annotation.XmlElements; //導入依賴的package包/類
@XmlElementWrapper(name = "values")
@XmlElements({
@XmlElement(name = "byte", type = Byte.class),
@XmlElement(name = "double", type = Double.class),
@XmlElement(name = "float", type = Float.class),
@XmlElement(name = "short", type = Short.class),
@XmlElement(name = "integer", type = Integer.class),
@XmlElement(name = "long", type = Long.class),
@XmlElement(name = "string", type = String.class)
})
public List<Object> getValues() {
return values;
}
示例8: getResources
import javax.xml.bind.annotation.XmlElements; //導入依賴的package包/類
@XmlElements({ @XmlElement(name = "resource") })
@XmlElementWrapper(name = "resources")
public final List<MCRIViewClientResource> getResources() {
return resources.entries()
.stream()
.map(entry -> new MCRIViewClientResource(entry.getKey(), entry.getValue()))
.collect(Collectors.toList());
}
示例9: getProperties
import javax.xml.bind.annotation.XmlElements; //導入依賴的package包/類
@XmlElements({ @XmlElement(name = "property") })
@XmlElementWrapper(name = "properties")
public final List<MCRIViewClientProperty> getProperties() {
return properties.entrySet()
.stream()
.map(entry -> new MCRIViewClientProperty(entry.getKey(), entry.getValue()))
.collect(Collectors.toList());
}
示例10: getConnections
import javax.xml.bind.annotation.XmlElements; //導入依賴的package包/類
@XmlElementWrapper(name = "connections")
@XmlElements({
@XmlElement(type = MutableSiblingConnection.class, name = "sibling-connection"),
@XmlElement(type = MutableParentInToChildInConnection.class, name = "parent-to-child-connection"),
@XmlElement(type = MutableChildOutToParentOutConnection.class, name = "child-to-parent-connection"),
@XmlElement(type = MutableShortCircuitConnection.class, name = "short-circuit-connection")
})
@Override
public final List<MutableConnection<?>> getConnections() {
return connections;
}
示例11: getTargets
import javax.xml.bind.annotation.XmlElements; //導入依賴的package包/類
@XmlElementWrapper(name = "targets")
@XmlElements({
@XmlElement(type = JAXBAdapters.JAXBElementPatternTarget.class, name = "element-regex"),
@XmlElement(type = JAXBAdapters.JAXBElementTarget.class, name = "element"),
@XmlElement(type = JAXBAdapters.JAXBExecutionTracePatternTarget.class, name = "execution-trace-regex"),
@XmlElement(type = JAXBAdapters.JAXBExecutionTraceTarget.class, name = "execution-trace")
})
@Override
public List<MutableOverrideTarget<?>> getTargets() {
return overrideTargets;
}
示例12: getGateways
import javax.xml.bind.annotation.XmlElements; //導入依賴的package包/類
@JsonProperty( value = "gateways" )
@XmlElementWrapper( name = "gateways" )
@XmlElements( { @XmlElement( name = "bulksms", type = BulkSmsGatewayConfig.class ),
@XmlElement( name = "clickatell", type = ClickatellGatewayConfig.class ),
@XmlElement( name = "http", type = GenericHttpGatewayConfig.class ) })
public List<SmsGatewayConfig> getGateways()
{
return gateways;
}
示例13: getExternalVariables
import javax.xml.bind.annotation.XmlElements; //導入依賴的package包/類
@XmlElementWrapper(name = "external-variables")
@XmlElements({@XmlElement(name="property-list-variable", type=JaxbPropertyListVariable.class),
@XmlElement(name="relative-date-variable", type=JaxbRelativeDateVariable.class),
@XmlElement(name="property-variable", type=JaxbPropertyValueVariable.class),
@XmlElement(name="fulltext-variable", type=JaxbFullTextVariable.class)})
@Override
public List<ExternalVariable<?>> getExternalVariables() {
return externalVariables;
}
開發者ID:Enterprise-Content-Management,項目名稱:documentum-rest-client-java,代碼行數:10,代碼來源:JaxbSearchTemplate.java
示例14: getExpressions
import javax.xml.bind.annotation.XmlElements; //導入依賴的package包/類
@XmlElementWrapper
@XmlElements({@XmlElement(name="expression-set", type=JaxbExpressionSet.class),
@XmlElement(name="fulltext", type=JaxbFullTextExpression.class),
@XmlElement(name="property", type=JaxbPropertyExpression.class),
@XmlElement(name="property-list", type=JaxbPropertyListExpression.class),
@XmlElement(name="property-range", type=JaxbPropertyRangeExpression.class),
@XmlElement(name="relative-date", type=JaxbRelativeDateExpression.class)})
public List<Expression> getExpressions() {
return expressions;
}
示例15: processElements
import javax.xml.bind.annotation.XmlElements; //導入依賴的package包/類
private void processElements(RoundEnvironment roundEnv, TypeElement classElement, XmlElements elements, VariableElement fieldElement,
Set<EipOption> eipOptions, String prefix) {
Elements elementUtils = processingEnv.getElementUtils();
String fieldName;
fieldName = fieldElement.getSimpleName().toString();
if (elements != null) {
String kind = "element";
String name = fieldName;
name = prefix + name;
TypeMirror fieldType = fieldElement.asType();
String fieldTypeName = fieldType.toString();
String defaultValue = findDefaultValue(fieldElement, fieldTypeName);
String docComment = findJavaDoc(elementUtils, fieldElement, fieldName, name, classElement, true);
boolean required = true;
required = findRequired(fieldElement, required);
// gather oneOf of the elements
Set<String> oneOfTypes = new TreeSet<String>();
for (XmlElement element : elements.value()) {
String child = element.name();
oneOfTypes.add(child);
}
EipOption ep = new EipOption(name, kind, fieldTypeName, required, defaultValue, docComment, false, false, null, true, oneOfTypes);
eipOptions.add(ep);
}
}